<?php
class IndexController extends Zend_Controller_Action
{
	public function init()
	{
		parent::init();
		Zend_Layout::startMvc(array('layoutPath' => APPLICATION_PATH . '/modules/default/layouts/scripts/'));
		$baseurl = Zend_Controller_Front::getInstance()->getBaseUrl();
		//$layout = Zend_Layout::getMvcInstance();
		// Set a layout script path:
		//$layout->setLayoutPath($baseurl.'modules/default/layouts/scripts/');
		// choose a different layout script:
		//$layout->setLayout('layout');

	}

	public function preDispatch(){
		$layout = $this->_helper->layout();
	}

	public function indexAction()
	{
		$picture = new Default_Model_Picture();
		$dpic = $picture->listAllPicture();
		$this->view->picture = $dpic;
		$this->view->testvalue = 'test value kakaka';
	}

	public function testAction()
	{
		$this->view->stringtest = 'default page';
	}
}